package o;

import com.huawei.appgallery.downloadengine.impl.smartmerge.jni.AppPatch;
import com.huawei.hms.aaid.constant.AaidIdConstant;

public class bnz {
    private String ˊ;
    private String ˋ;
    private String ˎ;
    private int ˏ = 0;

    public bnz(String str, String str2) {
        this.ˋ = str;
        this.ˊ = str2;
    }

    public int ˎ(String str, String str2) {
        if (dnw.ˋ(str)) {
            this.ˏ = AppPatch.ˏ().ˊ(str, str2, this.ˋ);
            if (this.ˏ == 0) {
                this.ˎ = dnw.ˎ(str2, AaidIdConstant.SIGNATURE_SHA256);
                if (this.ˎ == null || !this.ˎ.equalsIgnoreCase(this.ˊ)) {
                    return 3;
                }
                return 0;
            } else if (4 != this.ˏ) {
                return this.ˏ + 100;
            } else {
                return 4;
            }
        }
        this.ˏ = 4;
        return 4;
    }
}
